function updateBanner(selector) {

    var bgSelector = $(".bg-img");
    bgSelector.each(function (index, elem) {
        var element = $(elem),
            bgSource = element.data('bg');
        element.css('background-image', 'url(' + bgSource + ')');
    });

    $(selector).slick({
        autoplay: true,
        fade: true,
        speed: 1000,
        dots: false,
        prevArrow: '<button type="button" class="slick-prev"><i class="lnr lnr-chevron-left"></i></button>',
        nextArrow: '<button type="button" class="slick-next"><i class="lnr lnr-chevron-right"></i></button>',
        responsive: [{
            breakpoint: 992,
            settings: {
                arrows: false,
            }
        }]
    });

}

const lazyLoadImgs = []
const loadingImg = "/img/loading.gif"

function updateLazyImgs (){
    const imgs = document.querySelectorAll('.lazy-load[data-src]')
    lazyLoadImgs.push(...imgs)
}